package com.bojx.cms.dao;

import java.util.List;

import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Record;

public class AuthDao {
       public List<Record> queryPerms(long parentId){
    	   return Db.find("select * from cms_perm where parent_id=?",parentId);
       }
       
       public List<Record> queryPermsById(long id){
    	   return Db.find("select * from cms_perm where id=?",id);
       }
       
}
